<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ClienteViewDlg" widgetVar="ClienteViewDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.ViewClienteTitle}">
            <h:form id="ClienteViewForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{clienteController.selected != null}">
                        <h:outputText value="#{bundle.ViewClienteLabel_id}"/>
                        <h:outputText value="#{clienteController.selected.id}" title="#{bundle.ViewClienteTitle_id}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_nome}"/>
                        <h:outputText value="#{clienteController.selected.nome}" title="#{bundle.ViewClienteTitle_nome}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_dataNascimento}"/>
                        <h:outputText value="#{clienteController.selected.dataNascimento}" title="#{bundle.ViewClienteTitle_dataNascimento}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>
                        <h:outputText value="#{bundle.ViewClienteLabel_tipoPessoa}"/>
                        <h:outputText value="#{clienteController.selected.tipoPessoa}" title="#{bundle.ViewClienteTitle_tipoPessoa}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_cpfCnpj}"/>
                        <h:outputText value="#{clienteController.selected.cpfCnpj}" title="#{bundle.ViewClienteTitle_cpfCnpj}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_inscricaoEstadual}"/>
                        <h:outputText value="#{clienteController.selected.inscricaoEstadual}" title="#{bundle.ViewClienteTitle_inscricaoEstadual}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_rg}"/>
                        <h:outputText value="#{clienteController.selected.rg}" title="#{bundle.ViewClienteTitle_rg}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_numero}"/>
                        <h:outputText value="#{clienteController.selected.numero}" title="#{bundle.ViewClienteTitle_numero}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_telefone}"/>
                        <h:outputText value="#{clienteController.selected.telefone}" title="#{bundle.ViewClienteTitle_telefone}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_fax}"/>
                        <h:outputText value="#{clienteController.selected.fax}" title="#{bundle.ViewClienteTitle_fax}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_email}"/>
                        <h:outputText value="#{clienteController.selected.email}" title="#{bundle.ViewClienteTitle_email}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_dataCadastramento}"/>
                        <h:outputText value="#{clienteController.selected.dataCadastramento}" title="#{bundle.ViewClienteTitle_dataCadastramento}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>
                        <h:outputText value="#{bundle.ViewClienteLabel_limite}"/>
                        <h:outputText value="#{clienteController.selected.limite}" title="#{bundle.ViewClienteTitle_limite}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_logradouro}"/>
                        <h:outputText value="#{clienteController.selected.logradouro.toString()}" title="#{bundle.ViewClienteTitle_logradouro}"/>
                        <h:outputText value="#{bundle.ViewClienteLabel_cidade}"/>
                        <h:outputText value="#{clienteController.selected.cidade.toString()}" title="#{bundle.ViewClienteTitle_cidade}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="ClienteViewDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
